/*
 * @Date: 2022-03-28 18:19:49
 * @LastEditors: LiuPeng
 * @LastEditTime: 2022-03-29 14:33:29
 * @FilePath: \pay\src\routers\index.js
 */
import React from 'react'
import { Navigate } from 'react-router-dom'
const Main = React.lazy(() => import('../pages/main'))
const TenantInfo = React.lazy(() => import('../pages/Tenant/TenantInfo'))
const TenantRecharge = React.lazy(() => import('../pages/Tenant/TenantRecharge'))
const TenantApply = React.lazy(() => import('../pages/Tenant/TenantApply'))
const TenantDeatil = React.lazy(() => import('../pages/Tenant/TenantDeatil'))
const TenantRecord = React.lazy(() => import('../pages/Tenant/TenantRecord'))
const TenantAgency = React.lazy(() => import('../pages/TenantAgency/TenantAgency'))
const AgencyOrder = React.lazy(() => import('../pages/Agency/AgencyOrder'))
const AgencyRequest = React.lazy(() => import('../pages/Agency/AgencyRequest'))
const AgencyList = React.lazy(() => import('../pages/Agency/AgencyList'))
const AgencyDetail = React.lazy(() => import('../pages/Agency/AgencyDetail'))
const AgencyTenantInfo = React.lazy(() => import('../pages/AgencyTenant/AgencyTenantInfo'))
const AgencyTenantList = React.lazy(() => import('../pages/AgencyTenant/AgencyTenantList'))
const AgencyTenantAccout = React.lazy(() => import('../pages/AgencyTenant/AgencyTenantAccout'))
const AgencyPayRequset = React.lazy(() => import('../pages/AgencyTenant/AgencyPayRequset'))
const AgencyPayRecord = React.lazy(() => import('../pages/AgencyTenant/AgencyPayRecord'))
const AgencyPayOrder = React.lazy(() => import('../pages/AgencyPay/AgencyPayOrder'))
const AgencyPaySet = React.lazy(() => import('../pages/AgencyPay/AgencyPaySet'))
const AgencyCardList = React.lazy(() => import('../pages/AgencyPay/AgencyCardList'))
const AgencyCardDetail = React.lazy(() => import('../pages/AgencyPay/AgencyCardDetail'))
const PayGroundList = React.lazy(() => import('../pages/PayGround/PayGroundList'))
const PayGroundRequest = React.lazy(() => import('../pages/PayGround/PayGroundRequest'))
const PayGroundTable = React.lazy(() => import('../pages/PayGround/PayGroundTable'))
const PayGroundRecord = React.lazy(() => import('../pages/PayGround/PayGroundRecord'))
const PayGroundAccunt = React.lazy(() => import('../pages/PayGround/PayGroundAccunt'))
const PayGroundCardset = React.lazy(() => import('../pages/PayGroundCard/PayGroundCardset'))
const PayGroundCardList = React.lazy(() => import('../pages/PayGroundCard/PayGroundCardList'))
const PayGroundCardDetail = React.lazy(() => import('../pages/PayGroundCard/PayGroundCardDetail'))
const PayGroundOrder = React.lazy(() => import('../pages/PayGroundCard/PayGroundOrder'))
const PayGroundTest = React.lazy(() => import('../pages/PayGroundTest/PayGroundTest'))
const arr = [
  {
    path: 'main',
    element: <Main />
  },
  {
    path: 'tenantInfo',
    element: <TenantInfo />
  },
  {
    path: 'tenantRecharge',
    element: <TenantRecharge />
  },
  {
    path: 'tenantApply',
    element: <TenantApply />
  },
  {
    path: 'tenantDeatil',
    element: <TenantDeatil />
  },
  {
    path: 'tenantRecord',
    element: <TenantRecord />
  },
  {
    path: 'tenantAgency',
    element: <TenantAgency />
  },
  {
    path: 'agencyOrder',
    element: <AgencyOrder />
  },
  {
    path: 'agencyRequest',
    element: <AgencyRequest />
  },
  {
    path: 'agencyList',
    element: <AgencyList />
  },
  {
    path: 'agencyDetail',
    element: <AgencyDetail />
  },
  {
    path: 'agencyTenantInfo',
    element: <AgencyTenantInfo />
  },
  {
    path: 'agencyTenantList',
    element: <AgencyTenantList />
  },
  {
    path: 'agencyTenantAccout',
    element: <AgencyTenantAccout />
  },
  {
    path: 'agencyPayRequset',
    element: <AgencyPayRequset />
  },
  {
    path: 'agencyPayRecord',
    element: <AgencyPayRecord />
  },
  {
    path: 'agencyPayOrder',
    element: <AgencyPayOrder />
  },
  {
    path: 'agencyPaySet',
    element: <AgencyPaySet />
  },
  {
    path: 'agencyCardList',
    element: <AgencyCardList />
  },
  {
    path: 'agencyCardDetail',
    element: <AgencyCardDetail />
  },
  {
    path: 'payGroundList',
    element: <PayGroundList />
  },
  {
    path: 'payGroundTable',
    element: <PayGroundTable />
  },
  {
    path: 'payGroundRecord',
    element: <PayGroundRecord />
  },
  {
    path: 'payGroundAccunt',
    element: <PayGroundAccunt />
  },
  {
    path: 'payGroundCardset',
    element: <PayGroundCardset />
  },
  {
    path: 'payGroundCardList',
    element: <PayGroundCardList />
  },
  {
    path: 'payGroundRequest',
    element: <PayGroundRequest />
  },
  {
    path: 'payGroundCardDetail',
    element: <PayGroundCardDetail />
  },
  {
    path: 'payGroundOrder',
    element: <PayGroundOrder />
  },
  {
    path: 'payGroundTest',
    element: <PayGroundTest />
  },
  {
    path: '/',
    element: <Navigate to='main' />
  }
]
export default arr